﻿@model BrnMall.Web.StoreAdmin.Models.BranchListModel

@section header{
    <title>门店列表-店铺管理</title>
    <link type="text/css" rel="stylesheet" href="/admin_store/css/site.css" />
    <script type="text/javascript" src="/admin_store/scripts/jquery.js"></script>
    <script type="text/javascript" src="/admin_store/scripts/showlist.js"></script>
}

@section body{
    <h1 class="rightH1">
        微信小程序 &gt; 店铺管理 &gt; <span class="rightH1-cur">门店列表</span> 
        <div class="right">
            <a href="@Url.Action("AddBranch")" class="menuBT"><img src="/admin_store/images/add.jpg" />添加</a>
            <div class="clear"></div>
        </div>
        <div class="clear"></div>
    </h1>
    <div class="table_top"></div>

    <div class="dataList">
        <table width="100%">
            <thead>
                <tr>
                    <th align="left" style="width:20%;text-align:center;">门店名称</th>
                    <th align="left" style="width:20%;">电话</th>
                    <th align="left" style="width:30%">地址</th>
                    <th width="50" align="left">排序</th>
                    <th width="76" align="left">管理操作</th>
                </tr>
            </thead>
            <tbody>
                @foreach (var info in Model.Result)
    {
                    <tr>
                        <td style="text-align:center;">
                            <a href="@Url.Action("EditBranch", new { bid = info.Bid })" class="editOperate">
                                <img height="60" src="@WorkContext.ImageCDN/upload/store/@WorkContext.StoreId/logo/source/@info.Logo" />
                                <div style="text-align:center;">@info.Name</div>
                                </a>
                        </td>
                        <td>@info.Phone</td>
                        <td>@info.Address</td>
                        <td>@info.DisplayOrder</td>
                        <td>
                            <a href="@Url.Action("BranchImgs", new { bid = info.Bid })" class="editOperate">门店图片</a>
                            <span class="btn-line">|</span>
                            <a href="@Url.Action("EditBranch", new { bid = info.Bid })" class="editOperate">修改</a>
                            <span class="btn-line">|</span>
                            <a href="@Url.Action("DeleteBranch", new { bid = info.Bid })" class="deleteOperate">删除</a>
                        </td>
                    </tr>
                }
            </tbody>
        </table>
    </div>

    <div class="table_bottom"></div>
}
